package com.file.manage.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.file.manage.infrastructure.base.entiry.BaseEntity;
import com.file.manage.domain.enums.UserRole;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @since 2025-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(title = "用户表", description = "用户表")
@TableName("user")
public class User extends BaseEntity<User> {
    @Schema(title = "名称")
    private String name;

    @Schema(title = "账号")
    private String account;
    @Schema(title = "密码")
    private String password;

    @Schema(title = "角色")
    private UserRole role;

}
